
<%@ page import="com.cgah.Bid" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'bid.label', default: 'Bid')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav"><span class="spacer"></span>
            %{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="bid.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: bidInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="bid.dateTime.label" default="Date Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${bidInstance?.dateTime}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="bid.amount.label" default="Amount" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: bidInstance, field: "amount")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="bid.listing.label" default="Listing" /></td>
                            
                            <td valign="top" class="value"><g:link controller="listing" action="show" id="${bidInstance?.listing?.id}">${bidInstance?.listing?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="bid.customer.label" default="Customer" /></td>
                            
                            <td valign="top" class="value"><g:link controller="customer" action="show" id="${bidInstance?.customer?.id}">${bidInstance?.customer?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
             <g:render template="/templates/editDelete" model="['customerId':bidInstance.listing.seller?.id,'targetId':bidInstance?.id, 'showAdmin':0]"/>
        </div>

    </body>
</html>
